package list;

import java.util.Set;
import java.util.Arrays;
import java.util.HashSet;

public class ConvertTest {

    public static void main(String[] args) {

        String[] values = new String[5];

        values[0] = "Hello";
        values[1] = "Hello";
        values[2] = "Hello";
        values[3] = "World";
        values[4] = "World";

        Set<String> staff = new HashSet<>(Arrays.asList(values));

        for (String element : staff)
            System.out.println(element);
    }
}
